<?php
class users extends db_table {
	/**
	 * User ID
	 *
	 * @var db_field
	 */
	public $user_id;
	/**
	 * User display name
	 *
	 * @var db_field
	 */
	public $user_displayname;
	/**
	 * User login
	 *
	 * @var db_field
	 */
	public $user_name;
	/**
	 * User encoded password
	 *
	 * @var db_field
	 */
	public $user_pwd;
	/**
	 * User encoding salt
	 *
	 * @var db_field
	 */
	public $user_pwd_salt;
	/**
	 * User email
	 *
	 * @var db_field
	 */
	public $user_email;
	/**
	 * User type
	 *
	 * @var db_field
	 */
	public $user_type;
	/**
	 * User status
	 *
	 * @var db_field
	 */
	public $user_status;
	/**
	 * User registration date
	 *
	 * @var db_field
	 */
	public $user_reg_date;
	/**
	 * User last action date
	 *
	 * @var db_field
	 */
	public $user_last_action;
	/**
	 * User last login IP
	 *
	 * @var db_field
	 */
	public $user_ip;
	/**
	 * User last login browser
	 *
	 * @var db_field
	 */
	public $user_browser;
	/**
	 * Determines if user is admin
	 *
	 * @var db_field
	 */
	public $user_is_admin;

	/**
	 * Constructor
	 *
	 * @param mixed $id
	 */
	public function __construct($id = null) {
		parent::__construct($id);
	}

	public static function status_registered() {
		return "registered";
	}

	public static function status_validated() {
		return "validated";
	}

	public static function status_suspended() {
		return "suspended";
	}

	public static function type_member() {
		return "member";
	}

	public static function type_group() {
		return "group";
	}
}
?>